﻿using System.Linq;

namespace ShowPin.MvcPaging
{
    /// <summary>
    /// 分页数据接口
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface IPagedList<out T>
    {
        /// <summary>
        /// 要从中返回元素的 System.Linq.IQueryable<T/>
        /// </summary>
        IQueryable<T> Source { get; }

        /// <summary>
        /// 每页数据量
        /// </summary>
        int PageSize { get; }

        /// <summary>
        /// 当前页
        /// </summary>
        int CurrentPage { get; }

        /// <summary>
        /// 总数据量
        /// </summary>
        int TotalItemCount { get; }
    }
}
